/**
 * 模拟微信中globalData
 *  Created  by  YMP  on  2019/11/13.
 */

const globalData = {}

/**
 * 设置globalData
 * @param key
 * @param val
 */
export function setGlobalData(key, val) {
  globalData[key] = val
}

/**
 * 获取glabalData
 * @param key
 * @returns {*}
 */
export function getGlobalData(key) {
  return globalData[key]
}
